<template>
  <div>
    <h1>Home</h1>
    <div>
      <!-- router-link 中to，只能书写路由地址 -->
      <router-link to='/home/news'>news</router-link><br>
      <!-- params传参 1. -->
      <router-link to='/home/music/1/3min'>music1</router-link><br>
      <router-link to='/home/music/2/4min'>music2</router-link><br>
      <router-link to='/home/music/3/6min'>music3</router-link>

    </div>

    <!--10. 二级路由组件 存放的位置 -->
    <router-view></router-view>
  </div>
</template>

<script>
// 切换路由时，无缓存， 创建 =》挂载 =》卸载 =》创建 =》挂载
export default {
  name: "Home",
};
</script>

<style>
</style>